﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Object One/Admin.Master" AutoEventWireup="true" CodeBehind="Company.aspx.cs" Inherits="ProjectHK3.Object_One.Company" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div style="text-align: left">
       <asp:Label ID="Label1" runat="server" Font-Bold="True" Font-Size="45pt" ForeColor="#FF6600" Text=" ๖ۣۜCompanies  ๖ۣۜManagement"></asp:Label>
        <br />
        <br />
        <asp:HyperLink ID="HyperLink1" runat="server" Font-Size="XX-Large" ForeColor="#FF6600" NavigateUrl="~/Object One/CreateCompany.aspx">Create New Company</asp:HyperLink>
        <table style="width:65%;">
            <tr>
                <td style="height: 41px"></td>
                <td style="height: 41px; text-align: right">
                    <asp:Label ID="Label2" runat="server" Text="Total :" ForeColor="Blue"></asp:Label>
                    <asp:Label ID="Label3" runat="server"></asp:Label>
                </td>
            </tr>
            <tr>
                <td colspan="2">       
                    <asp:GridView ID="_grwCompanies" runat="server" AutoGenerateColumns="False" EnableViewState="False" PageSize="15" OnRowDeleting="_grwCompanies_RowDeleting" CellPadding="4" ForeColor="#333333" GridLines="None">
                        <AlternatingRowStyle BackColor="White" />
                        <Columns>
                            <asp:BoundField DataField="COMPANY_CODE" HeaderText="COMPANY CODE" />
                            <asp:BoundField DataField="COMPANY_NAME" HeaderText="COMPANY NAME" />
                            <asp:BoundField DataField="COMPANY_PHONE" HeaderText="PHONE NUMBER" />
                            <asp:TemplateField HeaderText="ACTION">
                                <EditItemTemplate>
                                    <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
                                </EditItemTemplate>
                                <ItemTemplate>
                                    <asp:LinkButton ID="_lbtRemove" runat="server" CommandArgument='<%# Eval("COMPANY_ID") %>' CommandName="delete" OnClientClick="return confirm('Are you sure you want to delete this record ?')" OnCommand="_lbtRemove_Command" ToolTip="Delete Company">Remove</asp:LinkButton>
                                    &nbsp;&nbsp;
                                    <asp:LinkButton ID="_lbtViewDetails" runat="server" CommandArgument='<%# Eval("COMPANY_ID") %>' CommandName="view" OnCommand="_lbtViewDetails_Command" ToolTip="View Details Company information"> View Details</asp:LinkButton>
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                        <EditRowStyle BackColor="#2461BF" />
                        <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                        <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                        <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                        <RowStyle BackColor="#EFF3FB" />
                        <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                        <SortedAscendingCellStyle BackColor="#F5F7FB" />
                        <SortedAscendingHeaderStyle BackColor="#6D95E1" />
                        <SortedDescendingCellStyle BackColor="#E9EBEF" />
                        <SortedDescendingHeaderStyle BackColor="#4870BE" />
                    </asp:GridView>
                </td>
            </tr>
        </table>
        <br />

    </div>
</asp:Content>
